package com.xhu.water_supply.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@NoArgsConstructor      //生成一个无参构造
@AllArgsConstructor     //生成一个带参构造
@Builder
public class Customer {
    @Id
    private int cid;

    private String cname;

    private String caddress;

    private String cphone;

    private int num;

    /**
     * @return cid
     */
    public int getCid() {
        return cid;
    }

    /**
     * @param cid
     */
    public void setCid(int cid) {
        this.cid = cid;
    }

    /**
     * @return cname
     */
    public String getCname() {
        return cname;
    }

    /**
     * @param cname
     */
    public void setCname(String cname) {
        this.cname = cname;
    }

    /**
     * @return caddress
     */
    public String getCaddress() {
        return caddress;
    }

    /**
     * @param caddress
     */
    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    /**
     * @return cphone
     */
    public String getCphone() {
        return cphone;
    }

    /**
     * @param cphone
     */
    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    /**
     * @return num
     */
    public int getNum() {
        return num;
    }

    /**
     * @param num
     */
    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "cid='" + cid + '\'' +
                ", cname='" + cname + '\'' +
                ", caddress='" + caddress + '\'' +
                ", cphone='" + cphone + '\'' +
                ", num='" + num + '\'' +
                '}';
    }

}